const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');

module.exports = {
    entry:"./index.ts",
    output:{
        filename: '[name].bundle.js',
        path: path.join(__dirname, 'dist/'),
    },
    mode:"development",
    module: {
        rules: [
          {
            test: /\.ts$/,
            use: ["ts-loader"],
          },
        ],
    },
    plugins: [new HtmlWebpackPlugin({
        template:"./index.html"
    })],
}